package cn.maxhou.mapper;

import cn.maxhou.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    /**根据账号信息查询用户信息*/
    public SysUser getByAccount(String account);
    /**分页查询用户信息*/
    public List<SysUser> getPage(@Param("entity") SysUser entity,@Param("offset")  Integer offset,@Param("pageSize")  Integer pageSize);
    /**根据条件查询总记录数*/
    public Long count(@Param("entity")SysUser entity);
    /**添加用户*/
    public int insert(SysUser sysUser);
    /**修改用户*/
    public int update(SysUser sysUser);
    /**根据ID获取用户详细信息*/
    public SysUser getById(Long id);
    public int deleteById(Long id);

    public Integer changePassword(SysUser sysUser);
}
